using System;
using System.Collections.Generic;
using System.Text;
using Core;
using Core.Mapping;
using Core.Graphics;
using SerializationUtilities;
using Core.Scripting;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            SerializationUtilities.Utilities<Map> uml = new SerializationUtilities.Utilities<Map>();

            string path = @"C:\Test.TileLayer";

            Map tm = Map.NewEmptyMap(0, 0);

            uml.WriteObjectToFile(tm, path, SerializationType.XML, CompressionType.None);

            Console.WriteLine("Done...");

            //TileSet ts = uml.ReadObjectFromFile(path2, SerializationType.XML, CompressionType.None);

            //uml.WriteObjectToFile(ts, path, SerializationType.XML, CompressionType.SevenZip);

            //Tile t = ScriptLoader<Tile>.LoadScript(@"c:\HxHWorld\Test.cs", "ConsoleApplication1.Test", null);
            
            Console.Read();
        }
    }
}
